<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
<%@ taglib uri="http://struts.apache.org/tags-nested" prefix="nested" %>
  <table border="0" align="center" width="100%">
       <tr>
           <td align="center">
              <table border="0" width="100%">
                 <tr>
                     <td width="30%" valign="top">
                        <logic:equal name="haform" property="showPreferences" value="true">
                         <fieldset>
                            <legend>My Preferences</legend>
                            <table>
                               <tr>
                                  <td class="preflabel">
                                      My Name:
                                  </td>
                                  <td class="prefvalue">
                                      <nested:write name="preferences" property="name" scope="session"/>
                                  </td>
                               </tr>                            
                               <tr>
                                  <td class="preflabel">
                                      Attempts to answer a sum:
                                  </td>
                                  <td class="prefvalue">
                                      <nested:write name="preferences" property="attempts" format="" scope="session"/>
                                  </td>
                               </tr>
                               <tr>
                                  <td class="preflabel">
                                      Validate your answer:
                                  </td>
                                  <td class="prefvalue">
                                      <nested:write name="preferences" property="seeAnswer" scope="session"/>
                                  </td>
                               </tr>
                               <tr>
                                  <td colspan="2" align="right">&nbsp;</td>
                               </tr>                                                                                             

                               <tr>
                                  <td class="preflabel">
                                      &nbsp;
                                  </td>
                                  <td align="right">
                                      <a href="<%=request.getContextPath()%>/home.do?action=changepreferences">change</a>
                                  </td>
                               </tr>                               
                            </table>
                         </fieldset>
                         </logic:equal>
                         <logic:equal name="haform" property="showPreferences" value="false">
                            &nbsp;
                         </logic:equal>
                     </td>
                     <td width="40%">
                          <a href="<%=request.getContextPath()%>/home.do?action=home">
				              <img src="<%=request.getContextPath()%>/image/home.jpg" border="0">
			              </a>
                     </td>
                     <td width="30%" valign="top">
                         <table width="100%" border="0" bordercolor="red">
                            <tr>
                               <td colspan="2" class="leftlabel">
                                   <a style="text-decoration:none" href="<%=request.getContextPath()%>/sitemap.do?action=home">Site Map</a>
                               </td>
                            </tr>
                            <tr>
                               <td colspan="2"><br><br><br><br><br><br>&nbsp;</td>
                            </tr>
                            <tr valign="bottom">
                               <td width="70%">&nbsp;</td>
                               <td width="30%" align="left">
                                  <a href="<%=request.getContextPath()%>/signoff.do?action=signoff" ><img src="<%=request.getContextPath()%>/image/button/logoutup.png" border="0"></a>
                               </td>
                            </tr>
                         </table>
                     </td>                                          
                 </tr>
              </table>
           </td>
       </tr>               
   </table>